package com.sleepcamel.exporter.model;

import com.sleepcamel.rest.domain.JavaProperty;

import groovy.transform.ToString;

@ToString(includeNames=true,includeFields=true,excludes="parentClass,size")
class JavaDBProperty extends JavaProperty {

	Column column
    Integer size
    
    public boolean isNamesMatch() {
        return name == column.name;
    }
    public Integer getSize() {
    	size==null ? column.size : size
    }
}